package com.sinya.shoppingmall.fragment;

import android.os.Handler;
import android.os.Message;
import android.view.View;

import com.sinya.shoppingmall.R;
import com.sinya.shoppingmall.https.VolleyParams;
import com.sinya.shoppingmall.https.VolleyRequest;
import com.sinya.shoppingmall.implement.GetDataInterface;

/**
 * 打折促销
 *
 * @author KoizumiSinya
 * @date 2016/1/14.
 */
public class DiscountFragment extends BaseFragment implements GetDataInterface {

    // [+] Handler

    Handler handler = new Handler(new Handler.Callback() {
        @Override
        public boolean handleMessage(Message msg) {
            switch (msg.what) {
                case 0:

                    break;
                default:
                    break;
            }

            return false;
        }
    });

    // [-] Handler
    // [+] Override Method

    @Override
    protected View initView() {
        //TODO 必须继承的方法 用来返回布局文件
        return View.inflate(mContext, R.layout.fragment_discount, null);
    }

    @Override
    protected void setView() {
        //TODO 必须继承的方法 用来设置初始化布局控件
    }

    @Override
    public void fristGetData() {
        //TODO 实现自GetDataInterface接口
        VolleyRequest.Start(mContext, handler, 0, VolleyParams.topic, "1", "10");
    }

    @Override
    public void updateData() {
        //TODO 实现自GetDataInterface接口

    }

    // [-] Override Method

}
